// 加载路径，根据实际调整，正确加载以下资源
const ueeSdkDir = '/uee-sdk';

document.write(`
<link href="${ueeSdkDir}/xcloud.css" rel="stylesheet" type="text/css">
<script src="${ueeSdkDir}/systemjs/system.min.js"></script>
<script src="${ueeSdkDir}/systemjs/amd.min.js"></script>
<script src="${ueeSdkDir}/systemjs/named-register.min.js"></script>
<script src="${ueeSdkDir}/systemjs/css-extra.js"></script>
`);

window.$ans = {
  require: function () {
    return System.import.apply(System, arguments).then(function (ret) {
      return ret.__useDefault ? ret.default : ret;
    });
  }
};

document.write(`
<script src="${ueeSdkDir}/manifest.js"></script>
<script src="${ueeSdkDir}/vendors.js"></script>
<script src="${ueeSdkDir}/vendors2.js"></script>
<script src="${ueeSdkDir}/xcloud.js"></script>
`);
